/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.News;
import com.hlingsoft.cms.entity.Start;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 达人申请
 * 
 * @author Zhangjiale
 * 
 */

@Repository
public interface StartDao {



	/**
	 * 添加图片
	 * 
	 * @return Integer
	 */
	public long addStart(Start start);


	/**
	 * 审核申请
	 * @param start
	 * @return
	 */
	public Integer updateStart(Start start);


	/**
	 * 通过id查询
	 * @param id
	 * @return
	 */
	public Start getStartById(@Param("id") long id);

	public List<Start> getStartByAppUserIdWithNone(@Param("appUserId") long appUserId);

	/**
	 * 删除达人申请
	 * @param appUserId
	 * @return
	 */
	public Integer deleteStartByAppUserIdWithNone(@Param("appUserId") long appUserId);





}
